var direction;
var timeSlide = 1000;

$(function(){
	$('.nav-item').each(function(i, e){
		$(this).data({anim : true});
		$(this).bind('mouseover', hover);
		$(this).bind('mouseout', out);
	});
});
function hover(e){
	//$(this).children('figure').css({opacity : 1});
	$(this).children('p').css({backgroundColor : '#DBF280', opacity : .8});
	/*if($(this).data('anim')){
		$(this).data({anim : false});
		$(this).children('p').animate({height : 60, fontSize : 30, lineHeight : 220 + '%'}, timeSlide, function(){
			$(this).parent().data({anim : true});
		});
	}*/
}
function out(e){
	//$(this).children('figure').css({opacity : .7});
	$(this).children('p').css({backgroundColor : '#ffffff', opacity : .8});
	/*var child = $(this).children('p');
	child.animate({height : 30, fontSize : 20, lineHeight : 150 + '%'}, timeSlide, function(){});
	*/
}